<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>XML source view</title><link rel="stylesheet" type="text/css" href="../xmlverbatim.css" /></head><body class="xmlverb-default"><tt>
<!-- converted by xmlverbatim.xsl 1.1, (c) O. Becker -->
<div xmlns:xd="http://www.pnp-software.com/XSLTdoc" class="xmlverb-default">&lt;!--<span class="xmlverb-comment"><br />
   XML to HTML Verbatim Formatter with Syntax Highlighting<br />
   HTML wrapper<br />
   Version 1.1<br />
   LGPL (c) Oliver Becker, 2002-11-04<br />
   obecker@informatik.hu-berlin.de<br />
</span>--&gt;<br />
&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e2">stylesheet</a></span><span class="xmlverb-ns-name"> xmlns:xsl</span>="<span class="xmlverb-ns-uri">http://www.w3.org/1999/XSL/Transform</span>" <span class="xmlverb-attr-name">version</span>="<span class="xmlverb-attr-content">1.0</span>"&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e4">import</a></span> <span class="xmlverb-attr-name">href</span>="<span class="xmlverb-attr-content">xmlverbatim.xsl</span>" /&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> select the name of an element that should be formatted<br />
        (print only these elements and their contents) </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e8">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">select</span>" /&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> CSS Stylesheet </span>--&gt;<span class="xmlverb-text"><br />
   <br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e12">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">/</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverbwrapper</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e14">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">css-stylesheet</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">'xmlverbatim.css'</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-name"><a name="d27e16">html</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d27e18">head</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e20">title</a></span>&gt;<span class="xmlverb-text">XML source view</span>&lt;/<span class="xmlverb-element-name">title</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e23">link</a></span> <span class="xmlverb-attr-name">rel</span>="<span class="xmlverb-attr-content">stylesheet</span>" <span class="xmlverb-attr-name">type</span>="<span class="xmlverb-attr-content">text/css</span>" <span class="xmlverb-attr-name">href</span>="<span class="xmlverb-attr-content">{$css-stylesheet}</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-name">head</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-name"><a name="d27e26">body</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-default</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e28">tt</a></span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e30">choose</a></span>&gt;<span class="xmlverb-text"><br />
                  </span>&lt;!--<span class="xmlverb-comment"> "select" parameter present? </span>--&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e34">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">$select</span>"&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e36">apply-templates</a></span> <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverbwrapper</span>" /&gt;<span class="xmlverb-text"><br />
                  </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e39">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e41">apply-templates</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>" /&gt;<span class="xmlverb-text"><br />
                  </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-name">tt</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e46">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e47">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e48">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e49">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e50">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e51">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e52">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e53">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e55">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e56">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e57">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e58">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e59">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e60">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e61">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e62">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e63">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e64">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e65">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e67">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e68">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e69">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e70">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e71">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e72">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e73">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e74">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e75">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e76">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e77">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e79">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e80">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e81">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e82">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e83">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e84">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e85">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e86">br</a></span> /&gt;<span class="xmlverb-text">v<br />
         </span>&lt;/<span class="xmlverb-element-name">body</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-name">html</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e90">text</a></span>&gt;<span class="xmlverb-text"><br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">text</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e95">template</a></span> <span class="xmlverb-attr-name">match</span>="<span class="xmlverb-attr-content">*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverbwrapper</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e97">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e99">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">name()=$select</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;!--<span class="xmlverb-comment"> switch to render mode </span>--&gt;<span class="xmlverb-text"><br />
            </span>&lt;!--<span class="xmlverb-comment"> print indent </span>--&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e105">span</a></span> <span class="xmlverb-attr-name">class</span>="<span class="xmlverb-attr-content">xmlverb-text</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e107">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">preformatted-output</span>"&gt;<span class="xmlverb-text"><br />
                  </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e109">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>"&gt;<span class="xmlverb-text"><br />
                     </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e111">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">find-last-line</span>"&gt;<span class="xmlverb-text"><br />
                        </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e113">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">preceding-sibling::node()[1][self::text()]</span>" /&gt;<span class="xmlverb-text"><br />
                     </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
                  </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">with-param</span>&gt;<span class="xmlverb-text"><br />
               </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-name">span</span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;!--<span class="xmlverb-comment"> print element </span>--&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e121">apply-templates</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">.</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverb</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-name"><a name="d27e124">br</a></span> /&gt;&lt;<span class="xmlverb-element-name"><a name="d27e125">br</a></span> /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e128">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;!--<span class="xmlverb-comment"> look for the selected element among the children </span>--&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e132">apply-templates</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">*</span>" <span class="xmlverb-attr-name">mode</span>="<span class="xmlverb-attr-content">xmlverbwrapper</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
   </span>&lt;!--<span class="xmlverb-comment"> return the last line (after newline) in parameter $text </span>--&gt;<span class="xmlverb-text"><br />
   </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e139">template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">find-last-line</span>"&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e141">param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" /&gt;<span class="xmlverb-text"><br />
      </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e143">choose</a></span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e145">when</a></span> <span class="xmlverb-attr-name">test</span>="<span class="xmlverb-attr-content">contains($text,' ')</span>"&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e147">call-template</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">find-last-line</span>"&gt;<span class="xmlverb-text"><br />
               </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e149">with-param</a></span> <span class="xmlverb-attr-name">name</span>="<span class="xmlverb-attr-content">text</span>" <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">substring-after($text,' ')</span>" /&gt;<span class="xmlverb-text"><br />
            </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">call-template</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">when</span>&gt;<span class="xmlverb-text"><br />
         </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e153">otherwise</a></span>&gt;<span class="xmlverb-text"><br />
            </span>&lt;<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name"><a name="d27e155">value-of</a></span> <span class="xmlverb-attr-name">select</span>="<span class="xmlverb-attr-content">$text</span>" /&gt;<span class="xmlverb-text"><br />
         </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">otherwise</span>&gt;<span class="xmlverb-text"><br />
      </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">choose</span>&gt;<span class="xmlverb-text"><br />
   </span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">template</span>&gt;<span class="xmlverb-text"><br />
<br />
</span>&lt;/<span class="xmlverb-element-nsprefix">xsl</span>:<span class="xmlverb-element-name">stylesheet</span>&gt;<br />
</div>
</tt><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />v
         </body></html>
